import 'package:flutter/material.dart';
import 'package:flutter_routes_demo/pages/aboutPage.dart';


class SplashPage extends StatefulWidget {
  @override
  State<StatefulWidget> createState() {
    // TODO: implement createState
    return _SplashPageState();
  }
}

class _SplashPageState extends State<SplashPage> {
  @override
  Widget build(BuildContext context) {
    // TODO: implement build
    return Scaffold(
      appBar: AppBar(
        title: Text(
          'Welcome to App!'
        ),
      ),
      body: ListView(
        children: <Widget>[
          RaisedButton(
            onPressed: () {
              Navigator.pushReplacementNamed(context, 'home');
            },
            child: Text('Let\'s start!'),
          ),
          FlatButton(
            onPressed: () {
              Navigator.pushReplacementNamed(context, 'about');
            },
            child: Text('About'),
          )
        ],
      ),
    );
  }
}